class QuestionByRole < ActiveRecord::Base

  belongs_to :question

  validates_inclusion_of :kind, :in => [ 'xb', 'sc', 'cc' ]
  validates_inclusion_of :first_column, :in => ['auto', 'yes']
  validates_inclusion_of :columns_by_xb, :in => ['yes', 'no']  

  def xb_filled_by_cc?
    return self.columns_by_xb == 'yes'
  end
  
  def first_column_auto?
    return self.first_column == 'auto'
  end

end
